package org.anderground.internal.graphics.factories;

import org.anderground.core.graphics.Rect;
import org.anderground.core.graphics.factories.RectFFactory;
import org.anderground.internal.graphics.abstaractions.AbstractRectF;
import org.anderground.internal.graphics.impl.AndroidRect;
import org.anderground.internal.graphics.impl.AndroidRectF;

import android.graphics.RectF;

public class RectFFactoryImpl extends RectFFactory {

	@Override
	public AbstractRectF create() {
		return new AndroidRectF(new RectF());
	}

	@Override
	public AbstractRectF create(float left, float top, float right, float bottom) {
		return new AndroidRectF(new RectF(left, top, right, bottom));
	}

	@Override
	public AbstractRectF create(org.anderground.core.graphics.RectF rectF) {
		return new AndroidRectF(new RectF(AndroidRectF.cast(rectF)));
	}

	@Override
	public AbstractRectF create(Rect rect) {
		return new AndroidRectF(new RectF(AndroidRect.cast(rect)));
	}

}
